<!DOCTYPE html>  
<html lang="zh-CN">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="format-detection" content="email=no" />
		<meta name="x5-orientation" content="portrait">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<title>超级搜券</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/tqkwap/list/css/amazeui.css"/>
		<link rel="stylesheet" type="text/css" href="__STATIC__/tqkwap/css/style.css"/>
		<link rel="stylesheet" type="text/css" href="__STATIC__/tqkwap/fonts/iconfont.css"/>
		<style type="text/css">
			p,ul,h1, h2, h3, h4, h5, h6,* + p, * + hr, * + ul, * + ol, * + dl, * + h1, * + h2, * + h3, * + h4, * + h5, * + h6{margin: 0;padding: 0;}
			a,a:focus,a:hover,a:active{text-decoration: none;}
			*,*:before,*:after{box-sizing: border-box;}
			input,input:focus,textarea,textarea:focus{outline: 0;}
			.ellipsis-2{ display: -webkit-box; overflow: hidden; white-space: normal!important; text-overflow: ellipsis; word-wrap: break-word; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
			/*so*/
			.so-top{position: relative;}
			.so-top .back{position: absolute;left: 12px;top: 12px;display: block;width: 40px;height: 40px;background: rgba(0,0,0,0.7);text-align: center;line-height: 32px;color: #fff;border-radius: 50%;font-size: 24px;}
			.so-top>img{width: 100%;}
			.so-top-box{position: absolute;top: 100px;left: 12px;right:20px;height: 44px;background-color: rgba(255, 255, 255, 0.8);border-radius: 16px;border:2px solid #fff;text-align: center;line-height: 44px;}
			.so-top-box .iconfont{font-size: 20px;color: #646464;line-height: 1;position: absolute;left: 6px;top: 10px;}
			.so-top-box input{display: block;width: 100%; height: 40px; border: none; position: absolute; left: 0; top: 0; background: transparent;border-radius: 16px;padding: 5px 10px 5px 30px;font-size: 14px;}
			.so-top-box input::-webkit-input-placeholder{font-size: 14px;color: #646464;}
			.so-top-box input:-moz-placeholder {font-size: 14px;color: #646464;}
			.so-top-box input::-moz-placeholder{font-size: 14px;color: #646464;}
			.so-top-box input:-ms-input-placeholder{font-size: 14px;color: #646464;}
			.so-top-btn{position: absolute;top: 100px;right: 12px;width: 70px;height: 44px;font-size: 16px;color: #fff;border-top-right-radius: 16px;border-bottom-right-radius: 16px;border: none;background-image: -webkit-linear-gradient(to right,#ff7438,#ff1f1f);background-image: -webkit-gradient(linear,left top, right top,from(#ff7438),to(#ff1f1f));background-image: -webkit-linear-gradient(left,#ff7438,#ff1f1f);background-image: -o-linear-gradient(left,#ff7438,#ff1f1f);background-image: linear-gradient(to right,#ff7438,#ff1f1f);}
			.so-explain{font-size: 14px;color: #646464;text-align: center;margin-top: 20px;}
			.so-title{display: inline-block;background-color: #ff4b37;padding: 10px 20px;border-radius: 20px;margin-top: 20px;}
			.so-title p{font-size: 18px;color: #fff;text-align: center;}
			.so-step{margin-top: 20px;padding: 0 12px;}
			.so-step>img{width: 100%;}
			.so-btn{display: block;width: 230px;margin: 40px auto;}
			.container{padding: 0 12px;}
			.list-pic{margin-right: 10px;float: left;position: relative;}
			.list-pic img{width: 100px;height: 100px;border-radius: 0;}
			.list-content{overflow: hidden;border-bottom: 1px solid #e1e1e1;}
			.list-flex{display: flex;margin-bottom: 10px;}
			.list-main{flex: 1;}
			.list-content .goods-name{height: 36px;}
			.goods-mask{position: absolute;left: 0;bottom: 0;width: 100%;height: 16px;background-color: rgba(0,0,0,0.4);font-size: 11px;color: #fff;text-align: center;line-height: 16px;}
			.icon-type{background-image: url(__STATIC__/tqkwap/images/so/icon-type.png);background-repeat: no-repeat;background-size: 36px 12px;position: absolute;margin: 2px 0 0 2px;}
			.icon-type.taobao{height:11.9px;width:11.9px;background-position:0 0;}
			.icon-type.tmall{width: 12px;height: 12px;background-position:-11.9px 0;}
			.icon-type.pinduo{width:12px;height:12px;background-position:-23.9px 0;}
			.goods-name{font-size: 14px;color: #222;line-height: 18px;text-indent:16px;}
			.coupon-main{height: 22px;padding: 0 8px;background: #e855f2;position: relative;border-radius: 4px;}
			.coupon-main:before,.coupon-main:after{content: "";position: absolute;left: -4px;top: 0;bottom: 0;width: 8px;height: 6px;background: #fff;border-radius: 50%;margin: auto;}
			.coupon-main:after{left: auto;right: -4px;}
			.coupon-main p{font-size: 14px;color: #fff;line-height: 22px;}
			.empty{padding-top: 100px;text-align: center;}
			.icon-empty{display: block; width: 97px;margin: 10px auto;}
			.maincolor{color: #ff4901;}
			.c-333{color: #323232;}
			.c-666{color: #666;}
			.c-999{color: #999;}
			.f-12{font-size: 12px;}
			.lh-22{line-height: 22px;}
			.lh-32{line-height: 32px;}
			.btn{display: inline-block; vertical-align: middle; line-height: 1; text-align: center; white-space: nowrap; outline: 0; -webkit-appearance: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;border: none;}
			.btn-main{background-color: #ff4901;color: #fff;}
			.btn-main:focus,.btn-main:hover{color: #fff;}
			.btn-sm{padding: 4px 12px;font-size: 12px;line-height: 1;}
			.radius{border-radius: 4px;}
			.backTop:hover,.backTop:focus{color: #fff;}
		</style>
	</head>
	<body>
		<main>
		<div class="so-top">
			<a href="javascript:history.go(-1);" class="back"><img src="__STATIC__/tqkwap/images/so/icon-back.png" width="24"/> </a>
			<img src="__STATIC__/tqkwap/images/so/so_top.png" width="100%"/>
			<form action="{:U('so/index')}" method="post" id="so">
				<div class="so-top-box">
	    			<span class="iconfont icon-sousuo"></span>
				  <input type="text" required="required" value="{$key}" name="key" id="search" placeholder="请粘贴手淘分享内容或淘宝商品标题">
				</div>
				<button type="submit" class="so-top-btn">搜索</button>
			</form>
		</div>
		
<if condition="$result eq 'yes'">

<div class="container list ">
		   		
		   			
<volist id="val" name="list">
		   			<div class="am-padding-top-sm">
	   					<div class="list-pic">
	   						<a href="javascript:;" data-quanurl="{$val.coupon_click_url}"  data-quanid="{$val.Quan_id}"  data-quan="{$val.quan}" class="jumpto" data-numid="{$val.num_iid}">
		   					<img src="{$val.pic_url}_220x220.jpg" width="100" height="100"/>
		   					</a>
		   					<span class="goods-mask">已售{$val.volume}件</span>
		   				</div>
	   					<div class="list-content">
	   						<div class="am-cf am-margin-bottom-sm">
		   						<i class="icon-type tmall"></i>
					            <p class="goods-name"><a href="javascript:;" data-quanurl="{$val.coupon_click_url}"  data-quanid="{$val.Quan_id}"  data-quan="{$val.quan}" class="jumpto c-333 ellipsis-2" data-numid="{$val.num_iid}">{$val.tongkuan}{$val.title}</a></p> 							
	   						</div>
	   						<div class="am-cf am-margin-bottom-xs">
	   							<div class="am-fl">
	   								<div class="coupon-main am-fl am-margin-right-xs"><p>省￥{$val.quan}</p></div>
	   								<p class="f-12 c-999 lh-22 am-fl">现价 ¥{$val['coupon_price']+$val['quan']}</p>
	   							</div>
	   						</div>
	   						<div class="am-cf am-margin-bottom-xs">
	   							<div class="am-fl"><h4 class="am-text-lg maincolor am-fl am-margin-right-xs"><span class="f-12">¥</span>{$val.coupon_price}</h4><p class="f-12 c-666 lh-32 am-fl">券后</p></div>
	   							<div class="am-fr">
	   								<a href="javascript:;" data-quanurl="{$val.coupon_click_url}"  data-quanid="{$val.Quan_id}"  data-quan="{$val.quan}" data-numid="{$val.num_iid}" class="jumpto btn btn-main radius btn-sm">立即抢购</a>
	   							</div>
	   						</div>
	   					</div>
		   			</div>
</volist>

<if condition="$status eq 'no'">
<div class="empty">
	<img src="__STATIC__/tqkwap/images/so/empty.png" class="icon-empty"/>
	<p class="f-14 c-999">抱歉！没有找到此商品的优惠信息。</p>
</div>
</if>		   			
		
		   		
		   	</div>
		
		
		
	<else/>
		<h4 class="so-explain">商品查券 教程说明</h4>
		<div class="am-text-center">
			<div class="so-title">
	    		<p>如何查找淘宝/天猫商品是否有券？</p>
	    	</div>
		</div>
	    <div class="so-step">
	    	<img src="__STATIC__/tqkwap/images/so/so_step_1.png" width="100%"/>
	    	<img src="__STATIC__/tqkwap/images/so/so_step_2.png" width="100%"/>
	    	<img src="__STATIC__/tqkwap/images/so/so_step_3.png" width="100%"/>
	    	<img src="__STATIC__/tqkwap/images/so/so_step_4.png" width="100%"/>
	    	<img src="__STATIC__/tqkwap/images/so/so_step_5.png" width="100%"/>
	    	<img src="__STATIC__/tqkwap/images/so/so_step_6.png" width="100%"/>
	    </div>
	    <a href="javascript:;" class="so-btn"><img src="__STATIC__/tqkwap/images/so/so_btn.png" width="100%"/></a>
	</if>     
		</main>
	    <script src="__STATIC__/tqkwap/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	    <include file="public:amz_foot" />
	   <script type="text/javascript">
	  $(function(){
	  $('.jumpto').on('click',function(){
	  var num_id=$(this).attr('data-numid');
	  var quan=$(this).attr('data-quan');
	  var quanurl=$(this).attr('data-quanurl');
	  var quanid=$(this).attr('data-quanid');
	  var trackurl='{$trackurl}';
	  $.ajax({
	  	type:"post",
	  	data:{numid:num_id,quan:quan,quanurl,quanurl,quanid,quanid},
	  	url:"{:U('jumpto/jumpclick')}",
	  	dataType: 'json',
	  	success:function(json){
	  		if(json.status==1){
	  			window.location.href=json.urls+trackurl;
	  		}
	  	}
	  });
	  	
	  });
	  
	  $(window).scroll(function(){
	    if($(window).scrollTop() > 100){
	        $("#scrollToTop").fadeIn(100);
	    }else{
	        $("#scrollToTop").fadeOut(100);
	    }
	});		
	$("#scrollToTop").click(function(){
	    $('body,html').animate({scrollTop:0},1000);
	});
	  })
	    	
	    </script>
    </body>
</html>